using UnityEngine;

namespace Brick
{
	public class RendererQueueEdit : MonoBehaviour
	{
		public int RenderQueue = 2200;

		private void Start()
		{
			SetRenderer();
		}

		public void SetRenderer()
		{
			Renderer component = GetComponent<Renderer>();
			Material[] materials = component.materials;
			foreach (Material material in materials)
			{
				material.renderQueue = RenderQueue;
			}
		}
	}
}

